[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Graph Unit
Type, Record and Variable Definitions
This constant is used by GetPalette, GetDefaultPalette, SetAllPalette,
and to define the PaletteType record:
Const
MaxColors = 15;
This record is used by GetPalette, GetDefaultPalette and SetAllPalette:
Type
PaletteType = Record
Size : Byte;
Colors : Array[1..MaxColors] of ShortInt;
End;
This record is used by GetLineSettings:
Type
LineSettingsType = Record
LineStyle : Word;
Pattern : Word;
Thickness : Word;
End;
This record is used by GetTextSettings:
Type
TextSettingsType = Record
Font : Word;
Direction : Word;
CharSize : Word;
Horiz : Word;
Vert : Word;
End;
This record is used by GetFillSettings:
Type
FillSettingsType = Record
Pattern : Word;
Color : Word;
End;
This record is used by GetFillPattern and SetFillPattern:
Type
FillPatternType = Array[1..8] of Byte;
This type is defined for your convenience:
Type
PointType = Record
X, Y, Integer;
End;
This record is used by GetViewSettings to report the status of the
current view port:
Type
ViewPortType = Record
X1, Y1, X2, Y2 : Integer;
Clip : Boolean;
End;
This record is used by GetArcCoords and can be used to retrieve
information about the last call to Arc or Ellipse.
Type
ArcCoordsType = Record
X, Y : Integer;
Xstart, Ystart : Integer;
Xend, Yend : Integer;
End;
These variables point to the Graph units heap management routines:
Var
GraphGetMemPtr : Pointer { allows user to steal heap allocation }
GraphFreeMemPtr : Pointer { allows user to steal heap deallocation }
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson